package com.lt.report.util;

import com.lt.report.controller.common.TableResponseVO;

import java.util.List;

public  class Util<T> {

    /**
     * 构造bootStrapTable 返回值
     * @param list
     * @return
     */
    public TableResponseVO<T> turnTOBootStrapTable(List<T> list,Long count){
        TableResponseVO<T> tTableResponseVO = new TableResponseVO<>();
        tTableResponseVO.setRows(list);
        tTableResponseVO.setTotal(count);
        return tTableResponseVO;
    }
}
